// vite.config.js
import { fileURLToPath, URL } from "node:url";
import { defineConfig, loadEnv } from "file:///C:/work/vue3-pnpm-pinia-template-master/node_modules/.pnpm/vite@5.0.10_sass@1.69.7/node_modules/vite/dist/node/index.js";
import progress from "file:///C:/work/vue3-pnpm-pinia-template-master/node_modules/.pnpm/vite-plugin-progress@0.0.7_vite@5.0.10/node_modules/vite-plugin-progress/dist/index.mjs";
import vue from "file:///C:/work/vue3-pnpm-pinia-template-master/node_modules/.pnpm/@vitejs+plugin-vue@4.6.2_vite@5.0.10_vue@3.4.3/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///C:/work/vue3-pnpm-pinia-template-master/node_modules/.pnpm/@vitejs+plugin-vue-jsx@3.1.0_vite@5.0.10_vue@3.4.3/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import Components from "file:///C:/work/vue3-pnpm-pinia-template-master/node_modules/.pnpm/unplugin-vue-components@0.26.0_vue@3.4.3/node_modules/unplugin-vue-components/dist/vite.js";
import { VantResolver } from "file:///C:/work/vue3-pnpm-pinia-template-master/node_modules/.pnpm/@vant+auto-import-resolver@1.0.2/node_modules/@vant/auto-import-resolver/dist/index.esm.mjs";
var __vite_injected_original_import_meta_url = "file:///C:/work/vue3-pnpm-pinia-template-master/vite.config.js";
var root = process.cwd();
var vite_config_default = defineConfig(({ command, mode }) => {
  let env = {};
  const isBuild = command === "build";
  if (!isBuild) {
    env = loadEnv(process.argv[3] === "--mode" ? process.argv[4] : process.argv[3], root);
  } else {
    env = loadEnv(mode, root);
  }
  return {
    base: env.VITE_BASE_PATH,
    server: {
      host: "0.0.0.0"
    },
    plugins: [
      vue(),
      vueJsx(),
      Components({
        resolvers: [VantResolver()]
      }),
      progress()
    ],
    resolve: {
      alias: {
        "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
      }
    },
    esbuild: {
      pure: env.VITE_DROP_CONSOLE === "true" ? ["console.log"] : void 0,
      drop: env.VITE_DROP_DEBUGGER === "true" ? ["debugger"] : void 0
    },
    build: {
      target: "es2015",
      outDir: env.VITE_OUT_DIR || "dist",
      sourcemap: env.VITE_SOURCEMAP === "true",
      cssCodeSplit: !(env.VITE_USE_CSS_SPLIT === "false")
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFx3b3JrXFxcXHZ1ZTMtcG5wbS1waW5pYS10ZW1wbGF0ZS1tYXN0ZXJcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkM6XFxcXHdvcmtcXFxcdnVlMy1wbnBtLXBpbmlhLXRlbXBsYXRlLW1hc3RlclxcXFx2aXRlLmNvbmZpZy5qc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vQzovd29yay92dWUzLXBucG0tcGluaWEtdGVtcGxhdGUtbWFzdGVyL3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZmlsZVVSTFRvUGF0aCwgVVJMIH0gZnJvbSAnbm9kZTp1cmwnXG5pbXBvcnQgeyByZXNvbHZlIH0gZnJvbSAncGF0aCdcbmltcG9ydCB7IGRlZmluZUNvbmZpZywgbG9hZEVudiB9IGZyb20gJ3ZpdGUnXG5pbXBvcnQgcHJvZ3Jlc3MgZnJvbSAndml0ZS1wbHVnaW4tcHJvZ3Jlc3MnXG5pbXBvcnQgdnVlIGZyb20gJ0B2aXRlanMvcGx1Z2luLXZ1ZSdcbmltcG9ydCB2dWVKc3ggZnJvbSAnQHZpdGVqcy9wbHVnaW4tdnVlLWpzeCdcbmltcG9ydCBDb21wb25lbnRzIGZyb20gJ3VucG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